﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccessLayer;
using DataAccessLayer.DAL;

namespace BestBuy.Account
{
    public partial class RegisterSuccess : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int userID = 0;
            Int32.TryParse(Request.QueryString["UserID"], out userID);

            User user = UserDAL.GetUser(userID);
            if (user == null)
            {
                Response.Redirect("~");
            }
            EmailAddress.Text = user.Email;
        }
    }
}